﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SharedKernel.Infrastructure.Grpc.Options
{
    /// <summary>
    /// Grpc客户端配置选项
    /// </summary>
    public class GrpcClientOptions
    {
        /// <summary>
        /// 微服务名称
        /// </summary>
        public virtual string ServiceName { get; set; } 
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 消息发送失败最大重试次数
        /// </summary>
        public int MaxRetryCount { get; set; }
        /// <summary>
        /// 鉴权码（接收到JWT Token之后，利用鉴权码再做一次加密）
        /// </summary>
        public string AuthorizationCode { get; set; }
    }
}
